from django.shortcuts import render, redirect, reverse
from django.views.decorators.http import require_GET


@require_GET
def index(request):
    username = request.GET.get('username')
    if username:
        return render(request, 'index.html')
    else:
        return redirect(reverse('front:signup'))


@require_GET
def signup(request):
    return render(request, 'signup.html')
